package artid.com.arttogoa.parser;

import java.io.Serializable;
import org.json.JSONObject;
/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：MySellParser   
* 类描述   ：我出售的实体类+解析   
* 创建人   ：耿卫斌   
* 创建时间：2016-7-20 上午10:23:09   
*
 */
public class MySellParser extends AppItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private String goods_id;//商品id
	private String goods_commend_num;//点赞数
	private String goods_image;//完整图URL（商品主图）
	private String goods_name;//作品名（商品名称）
	private String goods_price;//价格（商品价格）
	private String goods_size;
	private String gc_name;
	private String goods_addtime;//发布时间
	private String goods_click;//浏览数
	private String is_auth;//发布商品类别（商品状态）0未备案商品，1已备案商品（担保交易）
	private int height;
	private int goods_storage;
	private String realname;//原作者（A端艺术家真实姓名）
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		goods_id = obj.optString("goods_id");
		goods_commend_num = obj.optString("goods_commend_num");
		goods_image = obj.optString("goods_image");
		goods_name = obj.optString("goods_name");
		goods_price = obj.optString("goods_price");
		goods_size = obj.optString("goods_size");
		gc_name = obj.optString("gc_name");
		goods_addtime = obj.optString("goods_addtime");
		goods_click = obj.optString("goods_click");
		is_auth = obj.optString("is_auth");
		height = obj.optInt("height");
		goods_storage = obj.optInt("goods_storage");
		realname = obj.optString("realname");
	}
	public String getGoods_id() {
		return goods_id;
	}
	public void setGoods_id(String goods_id) {
		this.goods_id = goods_id;
	}
	public String getGoods_commend_num() {
		return goods_commend_num;
	}
	public void setGoods_commend_num(String goods_commend_num) {
		this.goods_commend_num = goods_commend_num;
	}
	public String getGoods_image() {
		return goods_image;
	}
	public void setGoods_image(String goods_image) {
		this.goods_image = goods_image;
	}
	public String getGoods_name() {
		return goods_name;
	}
	public void setGoods_name(String goods_name) {
		this.goods_name = goods_name;
	}
	public String getGoods_price() {
		return goods_price;
	}
	public void setGoods_price(String goods_price) {
		this.goods_price = goods_price;
	}
	public String getGoods_size() {
		return goods_size;
	}
	public void setGoods_size(String goods_size) {
		this.goods_size = goods_size;
	}
	public String getGc_name() {
		return gc_name;
	}
	public void setGc_name(String gc_name) {
		this.gc_name = gc_name;
	}
	public String getGoods_addtime() {
		return goods_addtime;
	}
	public void setGoods_addtime(String goods_addtime) {
		this.goods_addtime = goods_addtime;
	}
	public String getGoods_click() {
		return goods_click;
	}
	public void setGoods_click(String goods_click) {
		this.goods_click = goods_click;
	}
	public String getIs_auth() {
		return is_auth;
	}
	public void setIs_auth(String is_auth) {
		this.is_auth = is_auth;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public int getGoods_storage() {
		return goods_storage;
	}
	public void setGoods_storage(int goods_storage) {
		this.goods_storage = goods_storage;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public MySellParser() {
		super();
	}
	public MySellParser(String goods_id, String goods_commend_num,
			String goods_image, String goods_name, String goods_price,
			String goods_size, String gc_name, String goods_addtime,
			String goods_click, String is_auth, int height, int goods_storage,
			String realname) {
		super();
		this.goods_id = goods_id;
		this.goods_commend_num = goods_commend_num;
		this.goods_image = goods_image;
		this.goods_name = goods_name;
		this.goods_price = goods_price;
		this.goods_size = goods_size;
		this.gc_name = gc_name;
		this.goods_addtime = goods_addtime;
		this.goods_click = goods_click;
		this.is_auth = is_auth;
		this.height = height;
		this.goods_storage = goods_storage;
		this.realname = realname;
	}
	@Override
	public String toString() {
		return "MySellParser [goods_id=" + goods_id + ", goods_commend_num="
				+ goods_commend_num + ", goods_image=" + goods_image
				+ ", goods_name=" + goods_name + ", goods_price=" + goods_price
				+ ", goods_size=" + goods_size + ", gc_name=" + gc_name
				+ ", goods_addtime=" + goods_addtime + ", goods_click="
				+ goods_click + ", is_auth=" + is_auth + ", height=" + height
				+ ", goods_storage=" + goods_storage + ", realname=" + realname
				+ "]";
	}
}
